/**
 * Created by jinhongglin on 15-11-15.
 */
var app = angular.module('myweb', ["ui-router"]);
    app.config(function($stateProvider) {
        $stateProvider
            .state('home', {
                views :{
                  'nihao':{
                      url: '/webstormspace/diancandashitest/homepage',
                      templateUrl:'<h6> hello </h6>'
                  }
                }

            })
            .state('bangmang', {
                url: '/webstormspace/diancandashitest/bangdingcanpage',
                templateUrl: '/webstormspace/diancandashitest/help_order_meal.all_page'
            })
            .controller('homectrl', function ($scope, $state) {
                $scope.tobangmang = function () {
                    $state.go('bangmang');
                }
            })
    })